#coding=utf-8

from django.shortcuts import render
from django.views.generic.base import View
from models import NavPage
        
# Create your views here.

class IndexView(View):
    
    def get(self,request):
        navigation=NavPage.objects.filter(is_activity=1).order_by("sort")
        return render(request, "index.html",{"navigation":navigation})